package com.zj.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product")
public class Product implements Serializable {
    @TableId(value = "productId")
    private Long productId; //商品ID
    @TableField(value = "categoryId")
    private Long categoryId; //分类ID
    @TableField(value = "productName")
    private String productName; //商品名称
    @TableField(value = "description")
    private String description; //商品描述
    @TableField(value = "price")
    private Double price; //当前价格
    @TableField(value = "originalPrice")
    private Double originalPrice; //原价
    @TableField(value = "productStatus")
    private Integer productStatus; //状态(0-下架 1-上架)
    @TableField(value = "productImg")
    private String productImg; //商品图片
}
